const KEY = 'my-city-info'

// 获取city label & id
export const getCity = () => {
  return JSON.parse(localStorage.getItem(KEY))
}

// 设置city label & id
export const setCity = (val) => {
  localStorage.setItem(KEY, JSON.stringify(val))
}

// 删除city label & id
export const delCity = () => {
  localStorage.removeItem(KEY)
}